package com.lgy.rabbit.mq;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum DlxBusinessRabbit implements RabbitParent {
    /**
     * 死信正常队列
     */
    USER_MESSAGE_NORMAL("user.message.normal","user.message.direct"),
    USER_MESSAGE_DEAD("user.message.dead","user.message.dlx.direct");

    /**
     * 交换机名称
     */
    private final String exchangeName;

    /**
     * 路由键
     */
    private final String routeKey;


    @Override
    public String exchange() {
        return exchangeName;
    }

    @Override
    public String routingKey() {
        return routeKey;
    }
}
